package BaseLearn.designPatterns.builder.Test1;

public class Director {
    private Builder builder;
    public Director(Builder builder) {
        this.builder = builder;
    }
    public void construct() {
        builder.makeTitle("Greeting");
        builder.makeString("From Morning to Afternoon");
        builder.makeItems(new String[]{
            "Good Morning.",
            "Good Afternoon.",
        });
        builder.makeString("Evening");
        builder.makeItems(new String[]{
            "Good Evening",
            "Good Night",
            "See you",
        });
        builder.close();
    }
}
